Skip to content

slack: the comment on _PUBLISHED_NOT_SERVED dates only the entries the 2026-10-20 run measured - #1445

Merged
nuriyoo merged 3 commits into
brekkylab:mainfrom
tony1233200:slack-comment-dates-1428
Nov 21, 2026
Merged

nuriyoo merged 3 commits into
brekkylab:mainfrom
tony1233200:slack-comment-dates-1428

Conversation

@tony1233200

Copy link
Copy Markdown
Contributor

Closes #1428.

What changed

The comment on _PUBLISHED_NOT_SERVED in backlot/routers/slack.py now dates only the entries with no note of their own to the run of 2026-10-20, and says an entry the baseline gained later carries its own dated note there, so the comment stays true when the next scheduled run adds one. The admin.conversations.kick note in backlot/fidelity/baseline/slack.json now also records the GET measurement. The docstring of test_slack_answers_each_published_method_no_route_serves points at the comment for the run and at each later entry's note for its own date.

Why this is what the real API does

The baseline's own notes date 19 entries after 2026-10-20: 3 on 2026-10-28 (admin.users.deactivate, admin.users.access.pause, admin.users.access.resume), 11 on 2026-10-29 (the four admin.slackbot.skills.* and seven slackbot.skills.* methods), 1 on 2026-11-05 (admin.conversations.kick), 2 on 2026-11-10 (admin.analytics.slackbot.skills, admin.analytics.slackbot.tools), and 2 on 2026-11-19 (admin.analytics.members.activity, admin.analytics.members.metadata). The GET measurement added to the admin.conversations.kick note is the one reported in the issue: measured against slack.com on 2026-11-19, GET /api/admin.conversations.kick?limit=1 answers HTTP 200 {"ok":false,"error":"not_authed"} with no token and {"ok":false,"error":"invalid_auth"} with a bogus one, which is what Backlot answers and what the test asserts. No served answer changes; only the prose now matches the measurements already recorded.

Verification

  • Tests — pytest tests/test_slack.py on a .[dev] install: 422 passed.

  • Optional surfaces that ran rather than skipped — none beyond .[dev]: the optional extras were not installed, so the s3/sdk/mcp/llamaindex/integrations surfaces skipped, as the template notes.

  • Lint — ruff check . && ruff format --check . on the changed files: all checks passed, both files already formatted. python scripts/prose_check.py: no findings.

  • A test fails without this change

  • A new endpoint serving corpus content is ACL-scoped, proved for both an admin and a scoped token

  • Comments state what was measured, not the history of the fix

@nuriyoo nuriyoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. On this head the baseline's notes date the 19 entries the description lists, and each of those notes records a GET and a POST with no token and with a bogus one, the admin.conversations.kick note now included, so the test's claim holds for them. Two things in the prose:

  1. The comment on _PUBLISHED_NOT_SERVED (inline). "An entry the baseline gained later carries its own dated note there, which is the date its measurement was made on, so this stays true when the next scheduled run adds one" describes the comment and when entries arrived rather than what was measured, and "which" reads as attaching to the note. The suggestion keeps the measurement sentence as it was on main and ends it with the two dates: 2026-10-20 for an entry with no note, and the note's date for one with a note.
  2. The test docstring (inline). With the comment dating both kinds of entry, the pointer can go back to one clause; as written it repeats the comment's split.

With the suggestions applied, tests/test_slack.py passes.

Comment thread backlot/routers/slack.py Resolved
Comment thread tests/test_slack.py Resolved
@tony1233200

Copy link
Copy Markdown
Contributor Author

Both suggestions applied in dd72bf6 (comment + test docstring, as suggested). tests/test_slack.py: 422 passed; ruff check/ruff format --check clean; scripts/prose_check.py: no findings.

@nuriyoo nuriyoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rework applies the suggestions as written. With main merged, tests/test_slack.py passes (422 passed).

@nuriyoo
nuriyoo merged commit d96cd5a into brekkylab:main Nov 21, 2026
9 checks passed
@nuriyoo

nuriyoo commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Merged, thank you! The comment on _PUBLISHED_NOT_SERVED now dates each entry by the run that measured it, 2026-10-20 or the date in the entry's note, and the admin.conversations.kick note records the GET beside the POST.

If Backlot is useful to you, a star on the repository would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slack: the comment on _PUBLISHED_NOT_SERVED dates every listed method's measurement to 2026-10-20, where 17 entries were measured on later dates

3 participants